home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / p063b9s.zip / UNIT / OPDEFINE.INC < prev    next >
Text File  |  1995-09-17  |  4KB  |  134 lines

  1. {*********************************************************}
  2. {*                  OPDEFINE.INC 1.10                    *}
  3. {*      Assorted conditional compilation directives      *}
  4. {*     Copyright (c) TurboPower Software 1988, 1989.     *}
  5. {*                 All rights reserved.                  *}
  6. {*********************************************************}
  7.  
  8. {This compiler directive controls whether the Float type in OPSTRING is
  9.  defined as an Extended or a Real. It also controls the inclusion of certain
  10.  methods that apply only to 8087 numeric types.}
  11.  
  12.   {$N-,D+}  {,L-,Y-}
  13.  
  14. {This directive forces all units to contain an initialization block, even
  15.  those that do not have any actual initialization code. Adding these blocks
  16.  helps to work around a bug in Turbo Debugger 1.5.}
  17.  
  18.   {.$DEFINE InitAllUnits}
  19.  
  20. {This directive determines whether or not OPCRT is compiled in such a way as
  21.  to coexist peacefully with the standard Turbo Pascal CRT unit.}
  22.  
  23.   {.$DEFINE UseCrt}
  24.  
  25. {This directive enables mouse support in several of the units, as well as in
  26.  some of the demo programs}
  27.  
  28.   {.$DEFINE UseMouse}
  29.  
  30. {This directive enables scroll bar support in OPWINDOW and units that
  31.  depend on it}
  32.  
  33.   {.$DEFINE UseScrollBars}
  34.  
  35. {This directive enables hot spot support in OPWINDOW and units that depend
  36.  on it}
  37.  
  38.   {.$DEFINE UseHotSpots}
  39.  
  40. {This directive enables shadowing support in OPWINDOW}
  41.  
  42.   {$DEFINE UseShadows}
  43.  
  44. {This directive enables the AdjustWindow, ResizeWindow, MoveWindow, and other
  45.  methods in OPWINDOW}
  46.  
  47.   {$DEFINE UseAdjustableWindows}
  48.  
  49. {If FourByteDates is defined, dates in OPDATE are stored as longints, giving a
  50. range of 01/01/1600-12/31/3999. If it isn't defined, dates are stored as words,
  51. giving a range of 01/01/1900-12/31/2078.}
  52.  
  53.   {$DEFINE FourByteDates}
  54.  
  55. {The following directive enables support for editing of dates in OPEDIT and
  56. OPENTRY. It also enables certain options in OPDIR, OPEDIT, OPENTRY, and
  57. OPFORM.}
  58.  
  59.   {$DEFINE UseDates}
  60.  
  61. {The following directive enables support for BCD reals in OPEDIT, OPENTRY and
  62. OPFORM}
  63.  
  64.   {.$DEFINE UseBCD}
  65.  
  66. {The following directive enables support for pick list fields in OPENTRY}
  67.  
  68.   {$DEFINE PickListFields}
  69.  
  70. {Deactivate the following define if the caller of OPSORT needs to perform
  71.  heap allocation or deallocation while the sort is in progress, that is,
  72.  within the user-defined procedures of the sort. For large sorts with
  73.  element size exceeding 4 bytes, FastDispose makes a significant difference
  74.  in the speed of heap deallocation when the sort is finished.}
  75.  
  76.   {$DEFINE FastDispose}
  77.  
  78. {If the following directive is defined, OPTSR and OPSWAP try to
  79.  thwart SideKick}
  80.  
  81.   {.$DEFINE ThwartSideKick}
  82.  
  83. {If the following directive is defined, streams support is enabled in all
  84.  objects}
  85.  
  86.   {$DEFINE UseStreams}
  87.  
  88. {If the following directive is defined, XMS support is enabled in OPSWAP and
  89.  OPEXEC. IMPORTANT: in that case you must also define the SupportXms constant
  90.  in OPSWAP.ASM and OPEXEC.ASM and reassemble those files. Failure to do so will
  91.  cause an error when recompiling the units.}
  92.  
  93.   {$DEFINE SupportXms}                        {!!.02}
  94.  
  95. {If the following directive is defined, OPDRAG support will be included in all
  96.  units containing command windows.}
  97.  
  98.   {.$DEFINE UseDrag}
  99.  
  100. {If the following directive is defined, the numeric editor in OPFEDIT will
  101.  operate in calculator fashion, allowing the user to enter decimal points
  102.  himself.}
  103.  
  104.   {.$DEFINE UseCalcEdit} {!!.13}
  105.  
  106.  {$IFDEF OS2}
  107.    { $DEFINE PMode}
  108.    {$UNDEF SupportXms}
  109.  {$ENDIF}
  110.  
  111.  {$IFDEF DPMI}
  112.    {$DEFINE PMode}
  113.  {$ENDIF}
  114.  
  115. {The following define controls how various OPRO units react to the heap
  116.  changes of TP6. There's no need for you to modify it.}
  117.  
  118.   {$IFDEF Ver60}
  119.   {$DEFINE Heap6}
  120.   {$ENDIF}
  121.  
  122. {The following define controls how various OPRO units accomodate changes to
  123.  the BP7 compiler.  These should not be modified.}
  124.  
  125.   {$IFDEF Ver70}
  126.     {$DEFINE Heap6}         {use TP6 style heap management in Real mode}
  127.     {$I-,P-,T-,X-,Q-}       {set specific directives we need}
  128.    {$IFDEF PMode}             {if in protected mode...}
  129.     {$UNDEF UseCrt}           {no mixing of CRT and OpCRT}
  130.     {$UNDEF FastDispose}      {no use of FastDispose in sorts}
  131.    {$ENDIF}
  132.   {$ENDIF}
  133.  
  134.